package com.yanmaohu.nikita.data.expression;

/**
 * ?:
 * @author Bright Lee
 */
public final class TernaryExpression extends Expression {

    private final Expression a;
    private final Expression b;
    private final Expression c;

    public TernaryExpression(int beginIndex, int endIndex, Expression a, Expression b, Expression c) {
        super(beginIndex, endIndex);
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public Expression getA() {
        return a;
    }

    public Expression getB() {
        return b;
    }

    public Expression getC() {
        return c;
    }

}
